package me.innolux.daxin_nesting.sqlService.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import me.innolux.daxin_nesting.mapper.MiddleTableMapper;
import me.innolux.daxin_nesting.pojo.entity.MiddleTable;
import me.innolux.daxin_nesting.pojo.vo.WcsReturnVo;
import me.innolux.daxin_nesting.sqlService.MiddleTableService;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
@RequiredArgsConstructor
public class MiddleTableServiceImpl extends ServiceImpl<MiddleTableMapper, MiddleTable> implements MiddleTableService {
    private final MiddleTableMapper middleTableMapper;

    @Override
    public List<MiddleTable> selectContainerCode(String containerCode) {
        LambdaQueryWrapper<MiddleTable> middleTableLambdaQueryWrapper = new LambdaQueryWrapper<>();
        middleTableLambdaQueryWrapper.eq(MiddleTable::getContainerCode,containerCode);
        return middleTableMapper.selectList(middleTableLambdaQueryWrapper);
    }
}
